﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WXY.Course.DAL;
using WXY.Course.Model;

namespace WXY.Course.BLL
{
    public class ResourceBLL
    {
        public ResourceInfo Get(int code)
        {
            return ResourceDAL.Get(code);
        }
        public int Delete(int code)
        {
            return ResourceDAL.Delete(code);
        }

        public int Update(ResourceInfo info)
        {
            return ResourceDAL.Update(info);
        }

        public int Insert(ResourceInfo info)
        {
            return ResourceDAL.Insert(info);
        }

        public IList<ResourceInfo> GetList(int moduleId)
        {
            return ResourceDAL.GetList(moduleId);
        }

        public IList<ResourceInfo> GetPageList(int moduleId, string title, PageParams pageParams)
        {
            return ResourceDAL.GetPageList(moduleId, title, pageParams);
        }

        public int Recommend(int code)
        {
            return ResourceDAL.Recommend(code);
        }

        public ResourceInfo GetRecommended()
        {
            return ResourceDAL.GetRecommended();            
        }
    }
}
